package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.pojo.Procedures;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProceduresMapper extends BaseMapper<Procedures> {

    @Select("select p.*,u.username from  procedures as p left join  user as u on p.user_id = u.id")
    List<Procedures> proceduresList();
}
